<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GuildServiceBasic: guildservicebasic/guild_service_basic.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">GuildServiceBasic
   &#160;<span id="projectnumber">0.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d04a84e85cf7a75c933e6a1d1407fb67.html">guildservicebasic</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">guild_service_basic.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="guild__service__basic_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// #ifndef GUILD_SERVICE_BASIC_H</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">// #define GUILD_SERVICE_BASIC_H</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;unordered_map&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;set&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;AnnounceMsg_struct.h&quot;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;AnnounceData_struct.h&quot;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &quot;GuildModuleBrief_struct.h&quot;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;fwd.h&quot;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;guild/module/guild_module.h&quot;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &quot;guild/module/guild_module_deleter.hpp&quot;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &quot;guild/module/guild_module_loader.hpp&quot;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &quot;guild/module/guild_module_saver.hpp&quot;</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &quot;singleton.hpp&quot;</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment">// struct GuildBrief;</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="keyword">namespace </span>guild_service {</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classguild__service_1_1_guild_service_basic.html">   49</a></span>&#160;<span class="keyword">class </span><a class="code" href="classguild__service_1_1_guild_service_basic.html">GuildServiceBasic</a> final {</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  <a class="code" href="classguild__service_1_1_guild_service_basic.html">GuildServiceBasic</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  ~<a class="code" href="classguild__service_1_1_guild_service_basic.html">GuildServiceBasic</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160; </div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  <a class="code" href="classguild__service_1_1_guild_service_basic.html">GuildServiceBasic</a>(<span class="keyword">const</span> <a class="code" href="classguild__service_1_1_guild_service_basic.html">GuildServiceBasic</a> &amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;  <a class="code" href="classguild__service_1_1_guild_service_basic.html">GuildServiceBasic</a>(<a class="code" href="classguild__service_1_1_guild_service_basic.html">GuildServiceBasic</a> &amp;&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;  <span class="keyword">const</span> <a class="code" href="classguild__service_1_1_guild_service_basic.html">GuildServiceBasic</a> &amp;operator=(<span class="keyword">const</span> <a class="code" href="classguild__service_1_1_guild_service_basic.html">GuildServiceBasic</a> &amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  <span class="keyword">const</span> <a class="code" href="classguild__service_1_1_guild_service_basic.html">GuildServiceBasic</a> &amp;operator=(<a class="code" href="classguild__service_1_1_guild_service_basic.html">GuildServiceBasic</a> &amp;&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160; </div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;  guild_id_type <a class="code" href="classguild__service_1_1_guild_service_basic.html#aec72559ab54e8cace8dae44dcdd12dd4">GetGuildIdByRole</a>(<span class="keyword">const</span> role_uuid_type role_uuid) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_service_basic.html#a53d4fc0508135f7e04de12f5208c4aef">AddGuild</a>(<span class="keyword">const</span> guild_id_type &amp;guild_id);</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160; </div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_service_basic.html#a17bd47b1a19ca7cc53b59d11fc2b1fb5">RemoveGuild</a>(<span class="keyword">const</span> guild_id_type guild_id);</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_service_basic.html#a9e7e1ac5c3b623bfca3dace697454352">AddGuildRole</a>(<span class="keyword">const</span> guild_id_type guild_id,</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;                    <span class="keyword">const</span> role_uuid_type role_uuid);</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_service_basic.html#a38e88a3e956116c2d8e6035d2b489209">RemoveGuildRole</a>(<span class="keyword">const</span> guild_id_type guild_id,</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;                       <span class="keyword">const</span> role_uuid_type role_uuid);</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160; </div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classguild__service_1_1_guild_service_basic.html#a33aa629a444dd8de2184f619af125d96">  110</a></span>&#160;  <span class="keyword">using</span> <a class="code" href="classguild__service_1_1_guild_service_basic.html#a33aa629a444dd8de2184f619af125d96">ForeachGuildCallbackType</a> =</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;      std::function&lt;void(<span class="keyword">const</span> guild_id_type&amp;)&gt;;  </div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classguild__service_1_1_guild_service_basic.html#a5d1e52122e505730c60e1958620f0319">ForeachGuild</a>(<span class="keyword">const</span> <a class="code" href="classguild__service_1_1_guild_service_basic.html#a33aa629a444dd8de2184f619af125d96">ForeachGuildCallbackType</a> &amp;callback);</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160; </div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_service_basic.html#ace03a702277cd013c7c2037ba07e5dbd">LoadGuildAsync</a>();</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160; </div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_service_basic.html#aa3cf09927644b2c17a705ddcab28003e">IncrGuildLastId</a>(guild_id_type &amp;guild_id);</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160; </div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="classguild__service_1_1_guild_service_basic.html#a74d346081ed5b31b0920a027eafff85d">  145</a></span>&#160;  <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_service_basic.html#a74d346081ed5b31b0920a027eafff85d">DeleteGuildToRedis</a>(<span class="keyword">const</span> guild_id_type guild_id) {</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="keywordflow">return</span> guild_service::detail::DeleteGuild(kGuildServiceBasicName, guild_id);</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;  }</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160; </div>
<div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="classguild__service_1_1_guild_service_basic.html#a4cc90fc8cc9c9176ee947041128b17fb">  157</a></span>&#160;  <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_service_basic.html#a4cc90fc8cc9c9176ee947041128b17fb">DeleteGuildModuleToRedis</a>(<span class="keyword">const</span> Guild &amp;guild,</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;                                              <span class="keyword">const</span> std::string &amp;module_name) {</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <span class="keywordflow">return</span> detail::DeleteGuildModule(kGuildServiceBasicName, guild.id,</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;                                     module_name);</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;  }</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160; </div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_service_basic.html#a62d92bbe3fb817001683692ba7f41e60">SaveGuildRoleToRedis</a>(<span class="keyword">const</span> std::string &amp;op,</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;                                   <span class="keyword">const</span> role_uuid_type role_uuid,</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;                                   <span class="keyword">const</span> guild_id_type guild_id);</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160; </div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_service_basic.html#a5c88f358230387be0aaaf69e9bab9150">SaveLastGuildIdToRedis</a>(<span class="keyword">const</span> guild_id_type guild_id);</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160; </div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;  <span class="keyword">static</span> Guild <a class="code" href="classguild__service_1_1_guild_service_basic.html#aac9e051e9b5c212a6cc7e1f7666e4314">NewGuild</a>(<span class="keyword">const</span> guild_id_type guild_id = 0ull);</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160; </div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_service_basic.html#a3beaec72abce51ff851201fadce9a73a">InSameGuild</a>(<span class="keyword">const</span> role_uuid_type role_uuid1,</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;                   <span class="keyword">const</span> role_uuid_type role_uuid2);</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160; </div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_service_basic.html#a6c35dac6b5461cb3ede679e693016d0c">HasGuild</a>(<span class="keyword">const</span> role_uuid_type role_uuid) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160; </div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_service_basic.html#af7755f60ce4b6847a6ee70841aecb06b">IsValidGuild</a>(<span class="keyword">const</span> Guild &amp;guild);</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160; </div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;  <span class="comment">// inline std::size_t Size() const { return guilds_.size(); }</span></div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160; </div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_service_basic.html#a9ade838b64cc4b6782e267255a022116">IsGuildNameExisted</a>(<span class="keyword">const</span> std::string &amp;name) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160; </div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;  <span class="keywordtype">bool</span> LoadGuildIdAsync();</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160; </div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;  <span class="keywordtype">bool</span> LoadGuildModuleAsync();</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160; </div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;  <span class="keywordtype">void</span> LoadGuildModuleBriefCallback(<span class="keyword">const</span> redis_result_type &amp;result, std::uint64_t udata);</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160; </div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;  <span class="keywordtype">bool</span> GetGuildIdByRoleFromRedis(<span class="keyword">const</span> role_uuid_type role_uuid,</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;                                 guild_id_type &amp;guild_id) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160; </div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;  std::unordered_map&lt;guild_id_type, GuildModuleBrief&gt; guild_to_brief_dic_;</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;  std::set&lt;guild_id_type&gt; guild_set_;</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;  std::unordered_map&lt;role_uuid_type, guild_id_type&gt; role_to_guild_dic_;</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;  <span class="comment">// std::unordered_map&lt;guild_id_type, std::string&gt;</span></div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;  <span class="comment">//     guild_to_name_;  ///&lt; 公会id查找公会名字容器</span></div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;};</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160; </div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;<span class="preprocessor">#define GuildServiceBasicSingleton \</span></div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;<span class="preprocessor">  (common::singleton&lt;guild_service::GuildServiceBasic&gt;::instance())</span></div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160; </div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;}  <span class="comment">// namespace guild_service</span></div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160; </div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;<span class="comment">// #endif  // GUILD_SERVICE_BASIC_H</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassguild__service_1_1_guild_service_basic_html_a33aa629a444dd8de2184f619af125d96"><div class="ttname"><a href="classguild__service_1_1_guild_service_basic.html#a33aa629a444dd8de2184f619af125d96">guild_service::GuildServiceBasic::ForeachGuildCallbackType</a></div><div class="ttdeci">std::function&lt; void(const guild_id_type &amp;)&gt; ForeachGuildCallbackType</div><div class="ttdoc">遍历公会回调函数类型</div><div class="ttdef"><b>Definition:</b> guild_service_basic.h:111</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_service_basic_html_aac9e051e9b5c212a6cc7e1f7666e4314"><div class="ttname"><a href="classguild__service_1_1_guild_service_basic.html#aac9e051e9b5c212a6cc7e1f7666e4314">guild_service::GuildServiceBasic::NewGuild</a></div><div class="ttdeci">static Guild NewGuild(const guild_id_type guild_id=0ull)</div><div class="ttdoc">构造一个公会</div><div class="ttdef"><b>Definition:</b> guild_service_basic.cpp:182</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_service_basic_html_a74d346081ed5b31b0920a027eafff85d"><div class="ttname"><a href="classguild__service_1_1_guild_service_basic.html#a74d346081ed5b31b0920a027eafff85d">guild_service::GuildServiceBasic::DeleteGuildToRedis</a></div><div class="ttdeci">static bool DeleteGuildToRedis(const guild_id_type guild_id)</div><div class="ttdoc">同步删除公会</div><div class="ttdef"><b>Definition:</b> guild_service_basic.h:145</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_service_basic_html_a5c88f358230387be0aaaf69e9bab9150"><div class="ttname"><a href="classguild__service_1_1_guild_service_basic.html#a5c88f358230387be0aaaf69e9bab9150">guild_service::GuildServiceBasic::SaveLastGuildIdToRedis</a></div><div class="ttdeci">static bool SaveLastGuildIdToRedis(const guild_id_type guild_id)</div><div class="ttdoc">保存最后创建的公会id</div><div class="ttdef"><b>Definition:</b> guild_service_basic.cpp:171</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_service_basic_html_a9e7e1ac5c3b623bfca3dace697454352"><div class="ttname"><a href="classguild__service_1_1_guild_service_basic.html#a9e7e1ac5c3b623bfca3dace697454352">guild_service::GuildServiceBasic::AddGuildRole</a></div><div class="ttdeci">bool AddGuildRole(const guild_id_type guild_id, const role_uuid_type role_uuid)</div><div class="ttdoc">添加角色到公会id的映射</div><div class="ttdef"><b>Definition:</b> guild_service_basic.cpp:60</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_service_basic_html_a3beaec72abce51ff851201fadce9a73a"><div class="ttname"><a href="classguild__service_1_1_guild_service_basic.html#a3beaec72abce51ff851201fadce9a73a">guild_service::GuildServiceBasic::InSameGuild</a></div><div class="ttdeci">bool InSameGuild(const role_uuid_type role_uuid1, const role_uuid_type role_uuid2)</div><div class="ttdoc">是否是同一个公会</div><div class="ttdef"><b>Definition:</b> guild_service_basic.cpp:199</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_service_basic_html_af7755f60ce4b6847a6ee70841aecb06b"><div class="ttname"><a href="classguild__service_1_1_guild_service_basic.html#af7755f60ce4b6847a6ee70841aecb06b">guild_service::GuildServiceBasic::IsValidGuild</a></div><div class="ttdeci">static bool IsValidGuild(const Guild &amp;guild)</div><div class="ttdoc">公会是否合法</div><div class="ttdef"><b>Definition:</b> guild_service_basic.cpp:214</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_service_basic_html_a4cc90fc8cc9c9176ee947041128b17fb"><div class="ttname"><a href="classguild__service_1_1_guild_service_basic.html#a4cc90fc8cc9c9176ee947041128b17fb">guild_service::GuildServiceBasic::DeleteGuildModuleToRedis</a></div><div class="ttdeci">static bool DeleteGuildModuleToRedis(const Guild &amp;guild, const std::string &amp;module_name)</div><div class="ttdoc">同步删除公会模块</div><div class="ttdef"><b>Definition:</b> guild_service_basic.h:157</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_service_basic_html_a62d92bbe3fb817001683692ba7f41e60"><div class="ttname"><a href="classguild__service_1_1_guild_service_basic.html#a62d92bbe3fb817001683692ba7f41e60">guild_service::GuildServiceBasic::SaveGuildRoleToRedis</a></div><div class="ttdeci">static bool SaveGuildRoleToRedis(const std::string &amp;op, const role_uuid_type role_uuid, const guild_id_type guild_id)</div><div class="ttdoc">同步保存公会角色</div><div class="ttdef"><b>Definition:</b> guild_service_basic.cpp:164</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_service_basic_html_a53d4fc0508135f7e04de12f5208c4aef"><div class="ttname"><a href="classguild__service_1_1_guild_service_basic.html#a53d4fc0508135f7e04de12f5208c4aef">guild_service::GuildServiceBasic::AddGuild</a></div><div class="ttdeci">bool AddGuild(const guild_id_type &amp;guild_id)</div><div class="ttdoc">添加公会</div><div class="ttdef"><b>Definition:</b> guild_service_basic.cpp:48</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_service_basic_html_a5d1e52122e505730c60e1958620f0319"><div class="ttname"><a href="classguild__service_1_1_guild_service_basic.html#a5d1e52122e505730c60e1958620f0319">guild_service::GuildServiceBasic::ForeachGuild</a></div><div class="ttdeci">void ForeachGuild(const ForeachGuildCallbackType &amp;callback)</div><div class="ttdoc">遍历所有公会</div><div class="ttdef"><b>Definition:</b> guild_service_basic.cpp:242</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_service_basic_html_a9ade838b64cc4b6782e267255a022116"><div class="ttname"><a href="classguild__service_1_1_guild_service_basic.html#a9ade838b64cc4b6782e267255a022116">guild_service::GuildServiceBasic::IsGuildNameExisted</a></div><div class="ttdeci">bool IsGuildNameExisted(const std::string &amp;name) const</div><div class="ttdoc">公会总数量</div><div class="ttdef"><b>Definition:</b> guild_service_basic.cpp:222</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_service_basic_html_aa3cf09927644b2c17a705ddcab28003e"><div class="ttname"><a href="classguild__service_1_1_guild_service_basic.html#aa3cf09927644b2c17a705ddcab28003e">guild_service::GuildServiceBasic::IncrGuildLastId</a></div><div class="ttdeci">static bool IncrGuildLastId(guild_id_type &amp;guild_id)</div><div class="ttdoc">同步递增公会id</div><div class="ttdef"><b>Definition:</b> guild_service_basic.cpp:159</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_service_basic_html_aec72559ab54e8cace8dae44dcdd12dd4"><div class="ttname"><a href="classguild__service_1_1_guild_service_basic.html#aec72559ab54e8cace8dae44dcdd12dd4">guild_service::GuildServiceBasic::GetGuildIdByRole</a></div><div class="ttdeci">guild_id_type GetGuildIdByRole(const role_uuid_type role_uuid) const</div><div class="ttdoc">根据角色唯一id获取公会id</div><div class="ttdef"><b>Definition:</b> guild_service_basic.cpp:30</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_service_basic_html"><div class="ttname"><a href="classguild__service_1_1_guild_service_basic.html">guild_service::GuildServiceBasic</a></div><div class="ttdoc">公会管理器类</div><div class="ttdef"><b>Definition:</b> guild_service_basic.h:49</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_service_basic_html_ace03a702277cd013c7c2037ba07e5dbd"><div class="ttname"><a href="classguild__service_1_1_guild_service_basic.html#ace03a702277cd013c7c2037ba07e5dbd">guild_service::GuildServiceBasic::LoadGuildAsync</a></div><div class="ttdeci">bool LoadGuildAsync()</div><div class="ttdoc">异步加载公会</div><div class="ttdef"><b>Definition:</b> guild_service_basic.cpp:67</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_service_basic_html_a6c35dac6b5461cb3ede679e693016d0c"><div class="ttname"><a href="classguild__service_1_1_guild_service_basic.html#a6c35dac6b5461cb3ede679e693016d0c">guild_service::GuildServiceBasic::HasGuild</a></div><div class="ttdeci">bool HasGuild(const role_uuid_type role_uuid) const</div><div class="ttdoc">是否有公会</div><div class="ttdef"><b>Definition:</b> guild_service_basic.cpp:218</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_service_basic_html_a17bd47b1a19ca7cc53b59d11fc2b1fb5"><div class="ttname"><a href="classguild__service_1_1_guild_service_basic.html#a17bd47b1a19ca7cc53b59d11fc2b1fb5">guild_service::GuildServiceBasic::RemoveGuild</a></div><div class="ttdeci">bool RemoveGuild(const guild_id_type guild_id)</div><div class="ttdoc">移除公会</div><div class="ttdef"><b>Definition:</b> guild_service_basic.cpp:54</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_service_basic_html_a38e88a3e956116c2d8e6035d2b489209"><div class="ttname"><a href="classguild__service_1_1_guild_service_basic.html#a38e88a3e956116c2d8e6035d2b489209">guild_service::GuildServiceBasic::RemoveGuildRole</a></div><div class="ttdeci">bool RemoveGuildRole(const guild_id_type guild_id, const role_uuid_type role_uuid)</div><div class="ttdoc">移除角色到公会id的映射</div><div class="ttdef"><b>Definition:</b> guild_service_basic.cpp:175</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
